"""
第三周Python代码示例，布尔表达式

2021-03-17
"""

a = 10
print(a == 10) # True
print(a != 10) # False

str_1 = "Hello"
str_2 = "hello"
print(str_1 == str_2) # False
print(str_1 != str_2) # True

list_a = [1,2,3]
list_b = [3,2,1]

# 只有每个对应索引的值完全相等才是相等
print(list_a == list_b) # False
print(list_a != list_b) # True

dict_a = {"x": 10, "y": 20}
dict_b = {"x": 20, "y": 10}
print(dict_a == dict_b) # True
print(dict_a != dict_b) # False

set_a = {1, 1, 2, 2, 3, 3} # {1, 2, 3}
set_b = {3, 2, 1, 1, 2, 3} # {2, 3, 1}
print(set_a == set_b) # True
print(set_b != set_a) # False